package cn.webrx;


public class Ex1 {
    public static void main(String[] args) {
        //计算两个数的和
        int a = 18;
        int b = 29;
        //输出并换行
        System.out.println("a=" + a);
        System.out.println("b=" + b);
        System.out.println("a+b=" + (a + b));
        //格式化输出
        System.out.printf("%d+%d=%d%n", a, b, a + b);
    }
}
